-- GENERATED SPELL FOR [Crusty] --


function spell0_18241(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_18241', 584, 1)
end

function Sorts_18241(pUnit, Event)
local choix_sorts_18241 = math.random(0, 0)
if choix_sorts_18241 == 0 then
pUnit:RegisterEvent('spell0_18241', 1, 1)
end
end

function mob18241_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18241', math.random(1500, 3000), 1)
end

function mob18241_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18241_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18241_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18241, 1, 'mob18241_Action')
RegisterUnitEvent(18241, 2, 'mob18241_Leave')
RegisterUnitEvent(18241, 3, 'mob18241_Kill')
RegisterUnitEvent(18241, 4, 'mob18241_Die')
